/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"09897140-F84E-48A4-A06E-96F15361B723"}
 */
var fLetra = null;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"06723EFE-1C56-4A29-B6B8-2BAFF5E15EF9",variableType:4}
 */
var fNroFactura = null;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"406A3624-5FDF-453B-A6DE-E2E3AAA15A14",variableType:4}
 */
var fSucursal = null;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"CB43F5D1-CDDF-479A-8765-1B59BC9CD0DA"}
 * @AllowToRunInFind
 */
function buscar(event) {
	forms.fac_baja_2.controller.find()
	
	forms.fac_baja_2.nro_factura = fNroFactura
	forms.fac_baja_2.letra = fLetra
	forms.fac_baja_2.sucursal = fSucursal
	
	if (forms.fac_baja_2.controller.search() != 0)
	{
		globals.formEnVentana('fac_baja_2','facturas','Factura Nº'+fNroFactura)
	}
	else
		globals.DIALOGS.showWarningDialog('Aviso','No se encontraron facturas','OK')
}
